import { UserContext, ThemeContext } from "../util/context"
import { useContext } from "react"

export default function UseContext() {
  const user = useContext(UserContext)
  const theme = useContext(ThemeContext)

  return (
    <div style={{ color: theme.color }}>
      color: {theme.color}、 user: {user.name}
    </div>
  )
}
